{template "content","header"}
<div class="nybanner">
<img src="{IMG_PATH}nybanner.jpg">
</div>
<div class="xinwen-box">
    <div class="common-width">
        <div class="xinwen wow fadeInUp">
            {pc:get sql="select p.thumb,p.description,p.title,pd.content from picture as p, picture_data as pd WHERE pd.id=p.id and p.id=$id"}{/pc}
            <div class="xinwen-time">
                <h1>{$data[0]['title']}</h1>
            </div>
            <div class="xinwen-nrxq">
                {$data[0]['content']}
            </div>
            <div id="ar_fot">
                {pc:get sql="select * from picture where catid=$catid and id<$id order by id desc" }{/pc}
                {if empty($data[0])}
                <h1 class="fl"><span>上一篇：</span><a href="javascript:;">没有了</a></h1>
                {else}
                <h1 class="fl"><span>上一篇：</span><a href="{$data[0]['url']}">{$data[0]['title']}</a></h1>
                {/if}
                {pc:get sql="select * from picture where catid=$catid and id>$id order by id asc" }{/pc}
                {if empty($data[0])}
                <h1 class="fr"><span>下一篇：</span><a href="javascript:;">没有了</a></h1>
                {else}
                <h1 class="fr"><span>下一篇：</span><a href="{$data[0]['url']}">{$data[0]['title']}</a></h1>
                {/if}
                <div class="clear"></div>
                <div class="bnt_box"><a href="?m=content&c=index&a=lists&catid=15" class="bnt_back">返回列表</a></div>
            </div>
        </div>
    </div>
</div>

{template "content","footer"}